package corsi.hibernate.demo.web.transazioni.services.util;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class HibernateUtil {

	
	private static SessionFactory factory;
	
	static {
			factory = new Configuration().configure().buildSessionFactory();
	}
	
	
	public static Session getHibernateSession(){
		
		return  factory.getCurrentSession();
	}
	
}
